//
//  AppDelegate+Appearance.m
//  MKViewController
//
//  Created by Mickey on 2017/1/22.
//  Copyright © 2017年 711. All rights reserved.
//

#import "AppDelegate+Appearance.h"

@implementation AppDelegate (Appearance)
-(void)setNavigationBarAppearance {
    
    [UIApplication sharedApplication].statusBarHidden = NO ;
    [UIApplication sharedApplication] .statusBarStyle = UIStatusBarStyleDefault ;
    
    [[UINavigationBar appearance ] setTintColor:[UIColor grayColor ]];
    [[UINavigationBar appearance ] setBarTintColor:[UIColor whiteColor]];
    
    [[UINavigationBar appearance ] setShadowImage:[UIImage new ] ];
    
    //返回按钮去标题 配合baseViewController中的@sel(setBackBtn)使用
    [[UIBarButtonItem appearance ] setBackButtonTitlePositionAdjustment:UIOffsetMake(NSIntegerMin, NSIntegerMin) forBarMetrics:UIBarMetricsDefault ];
    
    NSDictionary *attribute = [ NSDictionary dictionaryWithObjectsAndKeys:
                               [UIColor whiteColor],NSForegroundColorAttributeName,
                               [UIFont boldSystemFontOfSize:18], NSFontAttributeName,
                               nil];
    [[UINavigationBar appearance] setTitleTextAttributes:attribute ];
}

@end
